package game.messages.login
{
	import engine.network.*;
	import flash.utils.*;
	
	public class RxLogin_ConnectStatusMessage extends RxNetMessageBase
	{
		public var statusCode:uint;
		public var statusString:String;
		public static const STATUS_LOGIN_FAILED_INCOMPATIBLE_VERSION:uint = 0;
		public static const messageId:int = 2;
		public static const fixedSize:Boolean = false;
		
		public function RxLogin_ConnectStatusMessage()
		{
		}
		
		override public function GetBinarySize(param1:Number) : int
		{
			return (GetSize_String(this.statusString) + 1);
		}
		
		override public function GetId() : int
		{
			return messageId;
		}
		
		override public function IsFixedSize() : Boolean
		{
			return false;
		}
		
		override public function ToBinary(param1:ByteArray, param2:Number) : void
		{
			Write_uint8(param1, this.statusCode);
			Write_String(param1, this.statusString);
		}
		
		override public function FromBinary(param1:ByteArray, param2:Number) : void
		{
			this.statusCode = Read_uint8(param1);
			this.statusString = Read_String(param1);
		}
	}
}